<?php 
	$tr = Application_Form_FrmLanguages::getCurrentlanguage(); 
	$session_user=new Zend_Session_Namespace('auth');
	$request=Zend_Controller_Front::getInstance()->getRequest();
	$user_info = new Application_Model_DbTable_DbGetUserInfo();
	$result = $user_info->getUserInfo();
$url_user = $this->url(array('module'=>'users','controller'=>'index','action'=>''),null,true);
$url_user_type = $this->url(array('module'=>'users','controller'=>'user-type','action'=>''),null,true);
$url_acl = $this->url(array('module'=>'users','controller'=>'acl','action'=>''),null,true);
$url_access = $this->url(array('module'=>'users','controller'=>'user-access','action'=>''),null,true);
?>
<?php if (empty($session_user->user_name)){?>
<?php $db=Application_Model_DbTable_DbUsers::redirectUrl("/index/");
?>
<?php }else{?>
<style>
@media (max-width: 780px) {
	.dropdown{ display: none !important;}
}
@media (max-width: 1190px) {
	nav ul li a{ font-size: 12px; padding:8px 5px !important;top:2px;}
}
nav ul li a{ font-size: 14px;}
nav ul li ul li a { background: none;}
</style>
<div id="top">
      <nav class="navbar navbar-inverse navbar-fixed-top " style="padding-top: 4px;">
                <a data-original-title="Show/Hide Menu" data-placement="bottom" data-tooltip="tooltip" class="accordion-toggle btn btn-primary btn-sm visible-xs" data-toggle="collapse" href="#menu" id="menu-toggle">
                    <i class="icon-align-justify"></i>                    
                </a>
                <!-- LOGO SECTION -->
                <header class="navbar-header">

                    <a href="<?php echo $this->baseUrl();?>" class="navbar-brand" style="color: #fff;">
                    	<img src="<?php echo $this->baseUrl();?>/images/logo.png" alt="" width="40px;" />
                        Ping IT Group <?php //echo $session_user->id_code;?>
                    </a>
                </header>
                <!-- END LOGO SECTION -->
                <ul class="nav navbar-top-links navbar-right">
                    <!--ADMIN SETTINGS SECTIONS -->              
                    <li class="dropdown btn-grad">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class=" icon-sitemap"></i>&nbsp;Branch University <i class="icon-chevron-down "></i>
                        </a>

                        <ul class="dropdown-menu dropdown-user">
                            <li>
	                            <a href="<?php echo $this->url(array('module'=>'branch','controller'=>'index','action'=>''),null,true); ?>">
	                            <i class="icon-sitemap"></i>  All Branch University
                            ​  	</a>
                            </li>
                            <li>
	                            <a href="<?php echo $this->url(array('module'=>'branch','controller'=>'index','action'=>'add-branch'),null,true); ?>">
	                            <i class="icon-sitemap"></i>  Add Branch University​   
	                            </a>
                            </li>
                             <li>
	                             <a href="<?php echo $this->url(array('module'=>'locations','controller'=>'index','action'=>''),null,true); ?>">
	                             <i class="icon-sitemap"></i>  All Locations​  
	                              </a>
                              </li>  
                            <li>
	                            <a href="<?php echo $this->url(array('module'=>'locations','controller'=>'index','action'=>'add-location'),null,true); ?>">
	                            <i class="icon-sitemap"></i>  Add Locations​   
	                            </a>
                            </li>                                              
                        </ul>
                    </li> 
                    <li class="dropdown btn-grad">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="icon-th-large"></i>&nbsp; Foundation Year  <i class="icon-chevron-down "></i>
                        </a>

                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="#"><i class="icon-user"></i> អ្នកប្រើប្រាស់​  </a></li>
                            <li><a href="#"><i class="icon-user"></i> ប្រភេទអ្នកប្រើប្រាស់​   </a></li>
                            <li><a href="#"><i class="icon-user"></i> កំណាក់អ្នកដែលប្រើប្រាស់ </a></li>
                            <li><a href="#"><i class="icon-user"></i> ម៉ូលយោលរបស់អ្នកប្រើប្រាស់​   </a></li>                     
                        </ul>
                    </li> 
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class=" icon-shield "></i>&nbsp; Faculty  <i class="icon-chevron-down "></i>
                        </a>

                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="#"><i class="icon-user"></i> អ្នកប្រើប្រាស់​  </a></li>
                            <li><a href="#"><i class="icon-user"></i> ប្រភេទអ្នកប្រើប្រាស់​   </a></li>
                            <li><a href="#"><i class="icon-user"></i> កំណាក់អ្នកដែលប្រើប្រាស់ </a></li>
                            <li><a href="#"><i class="icon-user"></i> ម៉ូលយោលរបស់អ្នកប្រើប្រាស់​   </a></li>                     
                        </ul>
                    </li> 
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class=" icon-credit-card "></i>&nbsp; Account  <i class="icon-chevron-down "></i>
                        </a>

                        <ul class="dropdown-menu dropdown-user">
                            <li><a href=""><i class="icon-user"></i> អ្នកប្រើប្រាស់​  </a></li>
                            <li><a href="#"><i class="icon-user"></i> ប្រភេទអ្នកប្រើប្រាស់​   </a></li>
                            <li><a href="#"><i class="icon-user"></i> កំណាក់អ្នកដែលប្រើប្រាស់ </a></li>
                            <li><a href="#"><i class="icon-user"></i> ម៉ូលយោលរបស់អ្នកប្រើប្រាស់​   </a></li>                     
                        </ul>
                    </li> 
					<li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="icon-user "></i>&nbsp; Manage Users  <i class="icon-chevron-down "></i>
                        </a>

                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="<?php echo $url_user;?>"><i class="icon-user"></i> Users​  </a></li>
                            <li><a href="<?php echo $url_user_type;?>"><i class="icon-user"></i> User Tpye​   </a></li>
                            <li><a href="<?php echo $url_access;?>"><i class="icon-user"></i> User Access </a></li>
                            <li><a href="<?php echo $url_acl;?>"><i class="icon-user"></i> Moule User​   </a></li>                     
                        </ul>
                    </li>   	
                    <li class="dropdown"​​ >
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#" style="background: none; color: #fff;">
                            <i class="icon-user "></i>&nbsp;​<?php echo ucwords(strtolower($session_user->fullname));
                            ?> <i class="icon-chevron-down "></i>
                        </a>																					
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="#"><i class="icon-user"></i> User Profile </a>
                            </li>
                            <li><a href="#"><i class="icon-gear"></i> Settings </a>
                            </li>
                           <!--  <li class="divider"></li> --> 
                            <li class="logout"><a href="<?php echo $this->url(array('module'=>'','controller'=>'index','action'=>'logout', 'value'=>1));?>"><i class="icon-off"></i> Logout</a></li>
                        </ul>
                    </li>                                     
                    <!--END ADMIN SETTINGS -->
                </ul>

            </nav>
</div>
<div style="margin-top:50px;"></div>
<?php }?>